package com.lq.javawebTest.core.entity;

import java.util.HashMap;

/**
 * 对于每个客户端，都有一个Session用来存储数据，继承hashmap
 */
public class Session extends HashMap<String, Object> {

    public void setAttribute(String key, Object value) {
        super.put(key, value);
    }

    public Object getAttribute(String key) {
        return super.get(key);
    }
}
